package com.myjavalab.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class SpringIOC {
	public static void main(String[] args) {   
        ApplicationContext context = new FileSystemXmlApplicationContext(   
                "src/main/resources/applicationContext.xml");   
        Animal animal = (Animal) context.getBean("animal");   
        animal.say();   
    }
}

